<div style="border: solid 1px red; padding: 20px">

<h3>Sub Total</h3>

<hr>

<table id="rental_table" class="tablesorter">
<thead>
    <tr>
      <th>Customer ID</th>
      <th>Equipment ID</th>
      <th>Creation Date</th>
      <th>Category</th>
      <th>Remove Cart</th>
      <th>Remove From Cart</th>
    </tr>
</thead>
<tbody id="tablecontent">
<% if session[:rentals] %>
<% for rental in session[:rentals] %>
    <tr>
        <td>
            <%= rental.customer_id %>
        </td>
        <td>
            <%= rental.equipment_id %>
        </td>
        <td>
            <%= rental.date_created %>
        </td>
        <td>

        </td>
        <td>

        </td>
        <td>
            <%= link_to "[X]", {:action => "remove_rental", :id => rental.id}, :method => :post %>
        </td>
    </tr>
<% end %>
<% else %>
<p>nothing</p>
<% end %>
</tbody>
</table>

<hr>

<%= link_to "back", :action => 'dates' %>

<script type="text/javascript">
    $("#rental_table").tablesorter();
</script>

</div>

